package three;

/**
 * @author zzb
 * @since 2021-01-12
 */

//启动
public class Test {

  public static void main(String[] args) {
    PersonDirector pd = new PersonDirector();
    Person person = pd.constructPerson(new ManBuilder());
    System.out.println(person.getBody());//建造男人身体
    System.out.println(person.getFoot());//建造男人脚
    System.out.println(person.getHead());//建造男人头部
  }
}
